using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;

namespace NETColorsExplorer
{
    public class KnownColorsProvider : ColorsProvider
    {
        public override Type ColorProviderType
        {
            get { return typeof(KnownColor); }
        }

        protected override List<Color> GetColorList()
        {
            List<Color> list = new List<Color>();

            List<KnownColor> enumList = new List<KnownColor>((KnownColor[])Enum.GetValues(typeof(KnownColor)));
            foreach (KnownColor enumColor in enumList)
            {
                Color color = Color.FromKnownColor(enumColor);
                list.Add(color);
            }
            return list;
        }
    }
}
